{% extends 'usercenter_base.html' %}
{% block title %}
    我的消息 - 慕学在线网
{% endblock %}
{% block right_content %}
    <div class="right">
        <div class="personal_des Releasecont">
            <div class="head">
                <h1>我的消息</h1>
            </div>

        </div>
        <div class="personal_des permessage">
            <div class="head">
                <ul class="tab_header messagehead">
                    <li class="active"><a href="/user/message/">个人消息</a></li>
                </ul>


            </div>
            <div class="messagelist">
                {% for message in all_message.object_list %}
                    <div class="messages">
                        <div class="fr">
                            <div class="top"><span class="fl time">{{ message.add_time }}</span><span
                                    class="fr btn foldbtn"></span></div>
                            <p>
                                {{ message.message }}
                            </p>
                        </div>
                    </div>
                {% endfor %}
            </div>


            <div class="pageturn pagerright">
                <ul class="pagelist">
                    <ul class="pagelist">
                        {% if all_message.has_previous %}
                            <li class="long"><a
                                    href="?{{ all_message.previous_page_number.querystring }}">上一页</a></li>
                        {% endif %}
                        {% for page in all_message.pages %}
                            {% if page %}
                                {% ifequal page all_message.number %}
                                    <li class="active"><a href="?{{ page.querystring }}">{{ page }}</a></li>
                                {% else %}
                                    <li><a href="?{{ page.querystring }}" class="page">{{ page }}</a></li>
                                {% endifequal %}
                            {% else %}
                                <li class="none"><a href="">...</a></li>
                            {% endif %}
                        {% endfor %}
                        {% if all_message.has_next %}
                            <li class="long"><a
                                    href="?{{ all_message.next_page_number.querystring }}">下一页</a>
                            </li>
                        {% endif %}
                    </ul>
                </ul>
            </div>
        </div>

    </div>
{% endblock %}

